package com.team_project.boot.mapper;

import com.team_project.boot.entity.Design;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DesignMapper {
    @Select("select id,url,type,title,content,created from auther order by created desc limit 0,3")
    List<Design> selectRight();
    @Select("select id,url,type,title,content,created from auther order by created desc limit 3,3")
    List<Design> selectLeft();
}
